<?php

namespace Common\Service\Activity;
use Common\Service\BaseService;

// +----------------------------------------------------------------------
// | 文件 ActivityLuckyboxService.class.php
// +----------------------------------------------------------------------
// | 说明 幸运抽奖活动
// +----------------------------------------------------------------------
// | 
// +----------------------------------------------------------------------
// | Author: 谢赤心 Legend. <xcx_legender@qq.com>
// +----------------------------------------------------------------------

Class ActivityLuckyboxService extends BaseService
{

    protected $pk           = '_id';
    protected $_idType      =  self::TYPE_OBJECT;
    protected $autoinc      =  false;

    protected $_validate = array(
        array('title', 'require', '标题必须', self::MUST_VALIDATE , 'regex', self::MODEL_BOTH),
        array('type', 'require', '类型必须', self::MUST_VALIDATE , 'regex', self::MODEL_BOTH),
        
    );
     
     protected $_auto = array(
        array('created_at', NOW_TIME, self::MODEL_INSERT),
        array('updated_at', NOW_TIME, self::MODEL_BOTH),
        array('status', 'intval', self::MODEL_BOTH, 'function'),
    ); 
}